package com.example.mongodb.demo.service;

import com.example.mongodb.demo.model.entity.Goods;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IGoodsService {

    Goods findById(String id);

    Goods save(Goods blog);

    void delete(Goods blog);
    void deleteById(String id);

    long update(Goods blog);

    List<Goods> findByShopName(String goodsName);

    Page<Goods> findAll(Goods blog, Pageable pageable);


}
